export default {
  mdctrlActiveMode: 2,
  xdataControlName: 'map',
  loadDefault: true,
  deviewCodeName: 'map_area',
  deviewId: 'c8a10c1df2bd60d01b0e286ca5b5a4b7',
  appWFId: 'workflow',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '地图_区域',
  codeName: 'master_map_area',
  appDataEntityId: 'web.master',
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        newDataAppView: {
          openMode: 'POPUPMODAL',
          refAppViewId: 'web.master_edit_view',
        },
        appUILogicRefViews: [
          {
            openMode: 'POPUPMODAL',
            refAppViewId: 'web.master_edit_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        openDataAppView: {
          openMode: 'POPUPMODAL',
          refAppViewId: 'web.master_edit_view',
        },
        editMode: true,
        appUILogicRefViews: [
          {
            openMode: 'POPUPMODAL',
            refAppViewId: 'web.master_edit_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewRefs: [
    {
      realOpenMode: 'POPUPMODAL',
      realTitle: '主数据编辑视图',
      refAppViewId: 'web.master_edit_view',
      name: 'NEWDATA',
      id: 'newdata',
    },
    {
      realOpenMode: 'POPUPMODAL',
      realTitle: '主数据编辑视图',
      refAppViewId: 'web.master_edit_view',
      name: 'EDITDATA',
      id: 'editdata',
    },
  ],
  controls: [
    {
      legendPos: 'NONE',
      mapStyle: 'USER',
      sysMapItems: [
        {
          customCond:
            "{'SRFNAVPARAM.n_parent_id_eq': context.srfareacode===100000?'86':`${context.srfareacode}`}",
          dataAppDEFieldId: 'level',
          idAppDEFieldId: 'id',
          itemStyle: 'REGION',
          itemType: 'area',
          latitudeAppDEFieldId: 'code',
          longitudeAppDEFieldId: 'code',
          appDEDataSetId: 'fetch_default',
          appDataEntityId: 'web.region',
          textAppDEFieldId: 'name',
          name: '区域',
          id: 'area',
        },
      ],
      navViewPos: 'NONE',
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'map_area_map_view',
      controlType: 'MAP',
      height: 600,
      logicName: '地图_区域_地图部件',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'map',
      },
      modelId: '4ca28262f896a0007278411535e4d88a',
      modelType: 'PSSYSMAPVIEW',
      name: 'map',
      id: 'web.master.map_area_map_view',
    },
    {
      groupMode: 'SINGLE',
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.MASTER',
      },
      caption: '地图_区域',
      codeName: 'map_area_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.master',
      controlParam: {},
      name: 'captionbar',
      id: 'map_area_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEMAPVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.master',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '地图_区域',
  viewStyle: 'DEFAULT',
  viewType: 'DEMAPVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: '1170a94884e22ddc216d779b231c9b68',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERmap_area',
  id: 'web.master_map_area',
};
